include(pybind_extension)

pybind_extension(
  NAME
    xllm_export
  COPTS
    -DPY_MODULE_NAME=xllm_export
  SRCS
    bind.cpp
  DEFINES
    PYBIND11_DETAILED_ERROR_MESSAGES=1
  LINKDIRS
    ${TORCH_INSTALL_PREFIX}/lib
  DEPS
    :master
    :request
    :util
    absl::strings
    brpc
    gflags::gflags
    glog::glog
    Python::Module
)
target_link_libraries(common PRIVATE leveldb::leveldb ZLIB::ZLIB OpenSSL::SSL OpenSSL::Crypto protobuf::libprotobuf)
add_dependencies(common brpc-static)

